@import url('assets/style/theme.less');
@import url('assets/style/mixin.less');

.group__scroll {
  height: calc(100vh - 20px);
}

.groupon-center {
  flex-shrink: 0;
  background: #f5f5f5;
  position: relative;
  padding-bottom: 94px;

  .topFirst {
    padding: 0 24px;
    position: relative;

    .bgImg {
      width: 100vw;
      height: 216px;
      position: absolute;
      z-index: 0;
      top: 0;
      right: 0;
      background: linear-gradient(90deg, rgba(255, 132, 0, 1) 0%, rgba(255, 77, 0, 1) 100%);
      border-radius: 0 0 36px 36px;
    }

    .search {
      height: 64px;
      border-radius: 32px;
      background-color: #fff;
      padding: 0 32px;
      margin-top: 24px;
      flex-direction: row;
      align-items: center;
      z-index: 99;

      .img {
        margin: 0 16px 0 0;
        width: 32px;
        height: 32px;
      }
    }
  }

  .banner-list {
    z-index: 999;
    padding: 20px 24px 24px;

    div {
      flex-direction: unset;
    }

    .swiper-container {
      width: calc(100vw - 48px);

      .swiper-wrapper {
        width: calc(100vw - 48px);
      }
    }

    .banner-swiper {
      width: 100%;
      height: 274px;
      border-radius: 16px;
      overflow: hidden;
      -webkit-backface-visibility: hidden;
      -webkit-transform: translate3d(0, 0, 0);

      .banner {
        width: calc(100vw - 48px);
        height: 274px;
        border-radius: 16px;
      }
    }
  }

  .hots {
    background-color: #fff;
    padding-bottom: 32px;
    margin-bottom: 24px;

    .title {
      padding: 32px 24px;
      display: inline;
      line-height: 1;
    }

    .scroll-item {
      // padding-left: 24px;
      .items {
        flex-direction: row;
        align-items: center;

        :nth-last-child(1) {
          .item {
            margin-right: 24px;
          }
        }

        .item {
          margin-right: 16px;
          border-radius: 12px;
          border: 1px solid #ebebeb;
          overflow: hidden;
        }

        .img2 {
          width: 209px;
          height: 208px;
        }

        .infos {
          padding: 20px;
        }

        .content {
          font-size: 24px;
          color: #333;
          margin-bottom: 12px;
          .text-overflow(1);
          max-width: 166px;
        }

        .tail {
          margin-top: 12px;
          flex-direction: row;
          justify-content: space-between;
        }
      }
    }
  }

  .title-spell-group {
    height: 96px;
    padding: 32px 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1;
    background-color: #ffffff;

    .img {
      width: 32px;
      height: 32px;
      margin-right: 16px;
    }
  }

  .tabs-spell-group {
    height: 88px;
    position: sticky;
    width: 100%;
    top: 96px;
    z-index: 1;
    background-color: #ffffff;

    .tabs {
      display: flex;
      flex-direction: row;
      padding: 0 24px;

      :nth-last-child(1) {
        padding-right: 24px;
      }

      .item {
        margin-right: 32px;
        align-items: center;

        .text {
          white-space: nowrap;
          margin-top: 32px;
          font-size: 24px;
          color: #333;
        }

        .rect {
          margin: 20px 0 8px 0;
          width: 48px;
          height: 4px;
          border-radius: 2px;
          background-color: #ff6600;
          opacity: 0;
        }
      }

      .item-active {
        .text {
          color: #ff6600;
        }

        .rect {
          opacity: 1;
        }
      }
    }
  }

  .choice {
    background-color: #fff;
    padding-bottom: 32px;

    .groupon-item {
      background-color: #ffffff;
      border-radius: 12px;
      // padding: 0 0 32px 0;
      margin: 0 24px 24px;
      // border: 1px solid #e6e6e6;
      .tailBorder {
        border: 1px solid #e6e6e6;
        padding: 20px 0 32px;
        border-top: hidden;
        border-radius: 0 0 12px 12px;
      }

      .img {
        border-radius: 12px 12px 0 0;
        // margin-bottom: 10px;
        img {
          object-fit: cover;
        }
        width: 703px;
        height: 380px;
      }

      .content {
        line-height: 1.33;
        font-size: 24px;
        color: #333;
        font-weight: 500;
      }

      .tail {
        margin-top: 12px;
        flex-direction: row;
        justify-content: space-between;
      }

      .content,
      .tail {
        padding: 0 24px;
      }

      .right {
        flex-direction: row;
        align-items: center;

        .inline {
          display: flex;
          flex-direction: row;
          align-items: center;
        }

        .nums {
          margin-right: 16px;
          align-items: flex-end;
        }
      }

      .img1 {
        margin-left: 16px;
        width: 144px;
        height: 48px;
      }
    }
  }
}
